<%@ Page Theme="BlueSkin" Title="LMS : Admin --> Support Contacts" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="SupportContactsAdminEN.aspx.cs" Inherits="SupportContactsAdminEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
               Admin --> Support Contacts
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidth floating direction" style="margin-bottom:10px;">
        <div class="floating" style="font-size:1px;width:30px;height:1px;"></div>
        <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            
        
        
        <div class="clearing"></div>
        <div class="aligning allWidth floating direction">
            <asp:GridView DataKeyNames="ID" ID="grdUsers" runat="server" style="margin:30px;" 
                AutoGenerateColumns="False" AllowPaging="True" 
                 onrowdeleting="grdUsers_RowDeleting" Font-Size="12px" 
                onpageindexchanging="grdUsers_PageIndexChanging" 
                onrowediting="grdUsers_RowEditing" Width="840px" 
                EnableModelValidation="True">
                <HeaderStyle HorizontalAlign="Center" />

                <RowStyle HorizontalAlign="Center" />
                
                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label2" runat="server" Text="Label" >No Contacts found</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                        <HeaderTemplate>
                            <asp:Label ID="lblFullNameHead" runat="server" Text="Name"  ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblFullNameItem" runat="server" Text='<%#  getFullName(Container.DataItem)  %>'  style="margin-top:10px;margin-bottom:10px;"></asp:Label>
                                                     
                        </ItemTemplate>
                       <%-- <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />--%>
                    </asp:TemplateField>
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblPhone1Head" runat="server" Text="Phone 1" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblPhone1Item" runat="server" Text='<%#  Eval ("Phone1") + " " + Eval("Inner1") %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblPhone2Head" runat="server" Text="Phone 2" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblPhone2Item" runat="server" Text='<%#  Eval ("Phone2") + " " + Eval("Inner2") %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                   
                    
                     <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblMobile1Head" runat="server" Text="Mobile 1" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblMobile1Item" runat="server" Text='<%#  Eval ("Mobile1") %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>



                      <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblMobile2Head" runat="server" Text="Mobile 2" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblMobile2Item" runat="server" Text='<%#  Eval ("Mobile2") %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>



                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblEmailHead" runat="server" Text="Email"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblEmailItem" runat="server" Text='<%#  Eval ("Email") %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>



                     <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblAreaHead" runat="server" Text="Area" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblAreaItem" runat="server" Text='<%# getAreaName(Container.DataItem)  %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                                <asp:Label ID="lblActionsHead" runat="server" Text="Action" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           
                                <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit" CommandArgument='<%# Container.DataItemIndex %>'   Text="Edit"></asp:LinkButton>
                          
                                &nbsp;&nbsp;
                                
                                 <asp:LinkButton ID="lnkDelete" runat="server"  CommandName="Delete" CommandArgument='<%# Container.DataItemIndex %>' OnClientClick="javascript:return confirm ('Do you really want to delete this contact ?');"   Text="Delete" CausesValidation="false"></asp:LinkButton>
                                  
                                                 
                        </ItemTemplate>
                        
                        
                    </asp:TemplateField>
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>
        </div>
        
        
        
        
        <div class="clearing" style="width:1px;height:20px;"></div>
        
        
        <div class="allWidthWithMargins " style="margin:30px;font-size:14px;">
        
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblNameAR" runat="server" Text="Arabic First Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtNameAR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvNameAR" runat="server" ErrorMessage="You must enter an arabic name" ControlToValidate="txtNameAR">*</asp:RequiredFieldValidator>
        </div>
        
        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblNameEN" runat="server" Text="English First Name"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtNameEN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>


        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMiddleNameAR" runat="server" Text="Arabic Middle Name"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMiddleNameAR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>


        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMiddleNameEN" runat="server" Text="English Middle Name"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMiddleNameEN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>


         <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblLastNameAR" runat="server" Text="Arabic Last Name*"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtLastNameAR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvLastNameAR" runat="server" ErrorMessage="You must enter an arabic last name" ControlToValidate="txtLastNameAR">*</asp:RequiredFieldValidator>
        </div>


        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblLastNameEN" runat="server" Text="English Last Name"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtLastNameEN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>

        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPhone1" runat="server" Text="Phone 1"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:300px;">
           <div class="floating" style="width:155px;">
                <asp:TextBox ID="txtPhone1" runat="server" Text="" style="width:150px;"></asp:TextBox>
           </div>
           <div class="floating" style="width:10px;text-align:center;">-</div>
            <div class="floating" style="width:85px;">
                <asp:TextBox ID="txtInner1" runat="server" Text="" style="width:85px;"></asp:TextBox>
           </div>



        </div>  
       <div class="floating aligning direction" >
           
        </div>





        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPhone2" runat="server" Text="Phone 2"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:300px;">
           <div class="floating" style="width:155px;">
                <asp:TextBox ID="txtPhone2" runat="server" Text="" style="width:150px;"></asp:TextBox>
           </div>
           <div class="floating" style="width:10px;text-align:center;">-</div>
            <div class="floating" style="width:85px;">
                <asp:TextBox ID="txtInner2" runat="server" Text="" style="width:85px;"></asp:TextBox>
           </div>



        </div>  
       <div class="floating aligning direction" >
           
        </div>




         <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMobile1" runat="server" Text="Mobile 1"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMobile1" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>

        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblMobile2" runat="server" Text="Mobile 2"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtMobile2" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>


        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtEmail" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RegularExpressionValidator ID="revEmail" runat="server" 
               ErrorMessage="Email must be in the right format" ControlToValidate="txtEmail" 
               ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </div>

         <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblAreaID" runat="server" Text="Area"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlArea" runat="server" Width="250px">
            </asp:DropDownList>
        </div>  
            
       <div class="floating aligning direction" >
          
        </div>


        
        <div class="clearing" style="width:1px;height:30px;"></div>
        
        <div class="floating direction" style="width:500px;text-align:right">
            
            <div style="float:right;"><asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            <div style="float:right;">
                <asp:Button ID="btnDelete" runat="server" Text="Delete" 
                OnClientClick="javascript:return confirm('Are you sure , you want to delete this contact ?');" 
                onclick="btnDelete_Click" style="height: 26px" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            <div style="float:right;">
                <asp:Button ID="btnNew" runat="server" Text="New" 
                 onclick="btnNew_Click" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
           
            
            <div class="clearing"></div>
            
        
        </div>
        
        <div class="clearing" style="width:1px;height:20px;"></div>
        
        <div class="allWidth floating direction" style="text-align:right;">
            
        </div>
        
        
        <div class="clearing"></div>
        
        <div class="aligning allWidth floating direction">
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" style="margin-left:30px;" EnableViewState ="false"></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" style="margin-left:30px;" EnableViewState="false"></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
        <div class="aligning allWidth floating direction">
            <asp:ValidationSummary ID="vsError" runat="server" />
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
      </div>  
      
      <div class="clearing"></div>
    </div>
    
    
    
    <div class="clearing"></div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

